home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / wtj007.zip / BAKER.ZIP / NETBIOS.H < prev    next >
Text File  |  1992-07-24  |  1KB  |  35 lines

  1. /*    NetBIOS.h 
  2.  *    based on the Win32 specification
  3.  *
  4.  *    Note: must include <windows.h> before this file
  5.  */
  6.  
  7. #define UCHAR    BYTE    /* Win32 calls this UCHAR */
  8. #define PUCHAR    LPBYTE    /*       and PUCHAR       */
  9.  
  10. typedef struct _NCB        /* NetBIOS control block */
  11. {
  12.     UCHAR    ncb_command;        /* command code */
  13.     UCHAR    ncb_retcode;        /* return code */
  14.     UCHAR    ncb_lsn;            /* local session number */
  15.     UCHAR    ncb_num;            /* number of our network name */
  16.     PUCHAR    ncb_buffer;            /* address of our message buffer */
  17.     UCHAR    ncb_callname[16];    /* blank-padded name of remote */
  18.     UCHAR    ncb_name[16];        /* our blank-padded netname */
  19.     UCHAR    ncb_rto;            /* rcv timeout/retry count */
  20.     UCHAR    ncb_sto;            /* send timeout/retry count */
  21. #ifdef WIN32
  22.     void    (*ncb_post) (struct _NCB *); /* post routine address */
  23. #else
  24.     FARPROC    ncb_post;
  25. #endif
  26.     UCHAR    ncb_lana_num;        /* lana (adapter) number 0=1st, etc */
  27.     UCHAR    ncb_cmd_cplt;        /* 0xff => command pending */
  28.     UCHAR    ncb_reserve[10];    /* reserved, used by BIOS */
  29. #ifdef WIN32
  30.     UCHAR    ncb_event;            /* HANDLE to WIN32 event set to */
  31. #endif                            /* signalled state when ASYNCH completes */ 
  32. }    NCB, FAR *PNCB;
  33.  
  34. UCHAR PASCAL FAR NetBIOS (PNCB Ncb);    /* our function prototype */
  35.